const Model = require('../mocks/article/list');

module.exports = app => {

    return class HomeController extends app.Controller {

        async index() {
            let data = await this.ctx.service.index.get();
            let like = await this.ctx.service.index.like();
            this.app.logger.info(data.education);
            await this.ctx.render('home/index.js', {
                banner: data.banner,
                notice: data.notice,
                education: data.education,
                like: like
            });
        }

    };
};
